package com.education.model.request;

import javax.validation.constraints.NotNull;

/**
 * @author 余一
 * @date 2021/9/27  14:57
 */
public class UserLoginRequest {

    @NotNull(message = "用户名不能为空")
    private String username;
    @NotNull(message = "密码不能为空")
    private String password;
    @NotNull(message = "请传入一个时间戳作为生成验证码的key")
    private String key;
    private String code;
    private Boolean checked = false;

    public Boolean isChecked(){
        return checked;
    }

    public String getKey() {
        return key;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }
}
